<?php
/**
 * @link https://ym2.cleverstone.top
 * @copyright Copyright (c) 2020 Yii Manager Software LLC
 */

namespace builder\tab\util;

use builder\tab\HelperInterface;
use builder\tab\util\titem\Builder;
use builder\tab\util\titem\Custom;

/**
 * 选项助手
 * @author cleverstone
 * @since ym2.0
 */
class TabItemHelper implements HelperInterface
{
    /**
     * 构建组件项
     * @param \builder\base\ViewBuilderInterface|\Closure $builder
     * @return Builder
     */
    public function builder($builder)
    {
        return new Builder($builder);
    }

    /**
     * 自定义内容项
     * @param string|\Closure $content
     * @return Custom
     */
    public function custom($content)
    {
        return new Custom($content);
    }
}